package com.felix.controller;

import com.felix.service.ScheduleServiceHi;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * HiController
 *
 * @author xuejinhua
 * @date 2018/10/19 16:29
 */
@RestController
public class HiController {

    @Resource
    private ScheduleServiceHi scheduleServiceHi;

    @GetMapping(value = "/hi")
    public String sayHi(@RequestParam String name) {
        return scheduleServiceHi.sayHiFromClientOne(name);
    }
}
